package com.parking.status.sync.netty.entity;

/**
 * Created by Administrator on 2015/9/24.
 */
public class RequestHeartBeat extends RequestPre {

    public RequestHeartBeat() {}

    public RequestHeartBeat(int seqno, String clientId, String tsn, String sim, String psam, String sysVer, String appVer) {
        super(seqno, clientId, tsn, sim, psam, sysVer, appVer);
        this.code = MessageType.CODE_BEAT;
    }

    public RequestHeartBeat(int seqno, String clientId, String tsn, String sim, String psam, String sysVer, String appVer, String parkingSpotId, String platformId, int workStat, String alarmStat, String ipAddress, String macAddress) {
        this(seqno, clientId, tsn, sim, psam, sysVer, appVer);
        this.parkingSpotId = parkingSpotId;
        this.platformId = platformId;
        this.workStat = workStat;
        this.alarmStat = alarmStat;
        this.ipAddress = ipAddress;
        this.macAddress = macAddress;
    }

    //停车点编号：
    private String parkingSpotId;
    //平台编号：
    private String platformId;
    //工作状态：1、工作正常 2工作异常 3调试状态
    private int workStat;
    //报警状态：不超过16 . 16位表示16种报警状态，1为报警状态 alarmStat[0] = 1 UPS供电报警  alarmStat[1] = 1无法打印发票 alarmStat[2] = 1人工控制报警 其他保留
    private String alarmStat;
    // IP地址：不超过15字符，用“.”分隔
    private String ipAddress;
    //MAC地址：不超过12字符，无分隔符
    private String macAddress;

    public String getParkingSpotId() {
        return parkingSpotId;
    }

    public void setParkingSpotId(String parkingSpotId) {
        this.parkingSpotId = parkingSpotId;
    }

    public String getPlatformId() {
        return platformId;
    }

    public void setPlatformId(String platformId) {
        this.platformId = platformId;
    }

    public int getWorkStat() {
        return workStat;
    }

    public void setWorkStat(int workStat) {
        this.workStat = workStat;
    }

    public String getAlarmStat() {
        return alarmStat;
    }

    public void setAlarmStat(String alarmStat) {
        this.alarmStat = alarmStat;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }
}
